package com.jixi.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "退餐订单详细表，记录学生的退餐订单详细信息")
@TableName("return_order_detail")
public class ReturnOrderDetail {
	
	@Schema(description = "退餐详细序号，主键")
	@TableId(value = "return_detail_id")
	private Long returnDetailId;
	
	@Schema(description = "退餐详细编号，用于唯一标识退餐订单详细记录")
	private String returnNumber;
	
	@Schema(description = "订单编号，关联到原始订餐订单")
	private String orderNumber;
	
	@Schema(description = "退餐日期和时间")
	private String returnDate;
	
	@Schema(description = "合计天数，退餐所涉及的总天数")
	private Integer totalDays;
	
	@Schema(description = "合计金额，退餐订单的总金额")
	private Double totalAmount;
	
	@Schema(description = "银行卡持卡人姓名")
	private String bankCardHolder;
	
	@Schema(description = "银行卡号，用于退款操作的银行卡号码")
	private String cardNumber;
	
	@Schema(description = "银行名称")
	private String bank;
	
	@Schema(description = "退餐状态：0=待退款，1=已退款，2退款失败")
	private Integer returnStatus;
	
	@Schema(description = "学生姓名，退餐学生的全名")
	private String studentName;
	
	@Schema(description = "学生身份证号码，用于验证学生身份")
	private String studentCard;
	
	@Schema(description = "所在学校，学生所在的学校名称")
	private String studentSchool;
	
	@Schema(description = "所在年级")
	private String studentGrade;
	
	@Schema(description = "所在班级，学生所在的班级")
	private String studentClass;
	
	@Schema(description = "家长id")
	private Long parentId;
	
	@Schema(description = "学生序号，外键，关联到学生信息表")
	private Long studentId;
	
	@Schema(description = "关联的学校id")
	private Long schoolId;
	
	@Schema(description = "关联的班级id，外键")
	private Long classId;
	
	@Schema(description = "关联的餐饮公司id")
	private Long companyId;
	
	@Schema(description = "关联的套餐id")
	private Long setmealId;
	
	@Schema(description = "关联的年级id")
	private Long gradeId;
	
	@Schema(description = "创建时间")
	private Date createTime;
	
	@Schema(description = "更新时间")
	private Date updateTime;
	
	@Schema(description = "是否删除")
	private Integer isDeleted;
	
	
}
